LDFLAGS=-shared
#LDFLAGS+= --strip-all
CFLAGS=-fPIC -g -Wall
CFLAGS+=-DDEBUGLEVEL=1

OBJS= \
	case.o \
	cases.o \
	utils.o \
	image.o

LIBNAME=libcytovision.so

${LIBNAME}: ${OBJS} libcytovision.h
	gcc ${LDFLAGS} ${OBJS} -o ${LIBNAME}

tags: ${OBJS}
	ctags -R .

all: ${LIBNAME}

install:
	install -m 0755 ${LIBNAME} /usr/lib
	ldconfig /usr/lib
	
clean:
	rm -f ${OBJS} ${LIBNAME} tags
